#$config
#$interface giu 0/<%=portID.split('/')[1]%>
#$interface scu 0/<%=portID.split('/')[1]%>
#$<%=type%> <%=portID.split('/')[2]%>
#$quit
<% if(addvlan){ -%>
#$vlan <%=addvlan%>
:$ENTER
#$port vlan <%=addvlan%> 0/<%=portID.split('/')[1]%> <%=portID.split('/')[2]%>$RETURN
<% } -%>
<% if(UnTagvlan){ -%>
#$vlan <%=UnTagvlan%>
:$ENTER
#$port vlan <%=UnTagvlan%> 0/<%=portID.split('/')[1]%> <%=portID.split('/')[2]%>$RETURN
<% } -%>
<% if(removevlan){ -%>
#$undo port vlan <%=removevlan%> 0/<%=portID.split('/')[1]%> <%=portID.split('/')[2]%>$RETURN
<% } -%>
<% if(UnTagvlan != oldUnTagvlan){ -%>
#$interface giu 0/<%=portID.split('/')[1]%>
#$interface scu 0/<%=portID.split('/')[1]%>
#$native-vlan <%=portID.split('/')[2]%> vlan 1$RETURN
<% if(UnTagvlan){ -%>
#$native-vlan <%=portID.split('/')[2]%> vlan <%=UnTagvlan%>$RETURN
<% } -%>
<% } -%>
#$quit